package com.ten.shou.service;



import com.baomidou.mybatisplus.extension.service.IService;
import com.ten.common.core.entity.TbBottomArticle;
import com.ten.common.core.vo.Result;
import com.ten.shou.vo.ArticleVo;
import com.ten.shou.vo.BottomVo;


/**
 * @author ：yangjia
 * @date ：Created in 2022/12/9 14:42
 * @description：
 * @modified By：
 * @version:
 */
public interface BottomService extends IService<ArticleVo> {
    /**
     * 查询所有的底部文章
      * @param current
     * @param pageSize
     * @param bottomVo
     * @return
     */
    Result<TbBottomArticle> selectAllBottom(Integer current, Integer pageSize, BottomVo bottomVo);

    /**
     * 添加底部文章
     * @param tbBottomArticle
     * @return
     */
    Result<TbBottomArticle> insertAllBottom(TbBottomArticle tbBottomArticle);

    /**
     *    删除底部文章
     * @param tbBottomArticle
     * @return
     */
    Result<TbBottomArticle> deleteByIdBottom(TbBottomArticle tbBottomArticle);

    /**
     *  修改底部文章的状态
      * @param id
     * @param isDisable
     * @return
     */
    Result<TbBottomArticle> updateStatusBottom(String id, int isDisable);

    /**
     *   修改底部导航名称
      * @param tbBottomArticle
     * @return
     */
    Result<TbBottomArticle> updateBottomTitle(TbBottomArticle tbBottomArticle);

    /**
     * 底部文章
     * @param articleVo
     * @return
     */
    Result getArticleByNavId(ArticleVo articleVo);
    /**
     * 修改底部文章
     */
    Result updateArticleByNavId(ArticleVo articleVo);
    /**
     * 客户端底部文章展示
     * @return
     */
    Result getQianAllBottomArticle();
    Result getAllQianArticle(String id);
}
